<!DOCTYPE html>
<html>
	<meta charset="utf-8">
	<head>
		<title>Media Query</title>
		<style>
			*{
				margin:0;
				padding:0;
			}
			.boxes{
				width: 300px;
				height: 300px;
				background: red;
			}

			@media (max-width:500px) and (min-width: 100px) {
				.boxes{
					width: 100px;
					height: 100px;
					background: red;
				}
			}
			@media (max-width:800px) and (min-width: 500px) {
				.boxes{
					width: 200px;
					height: 200px;
					background: orange;
				}
			}
			@media (min-width: 800px) {
				.boxes{
					width: 400px;
					height: 400px;
					background: green;
				}
			}
		</style>
	</head>
	<body>
		<div class="boxes">
			

		</div>

	</body>
</html>